<!DOCTYPE html>
<html lang="en">
<head>
    {include file="public/meta"} 
    <title>Title</title>
    {include file="public/include"}
</head>
<body>
{include file="public/head"}
<div class="conch-ctwrap">
    <div class="hl-ctwrap-item">
        <div class="container">
            <div class="hl-row-box clearfix">
                <div class="hl-comm-list">
                    <ul class="clearfix">
                        {maccms:comment num="'.$comment['pagesize'].'" paging="yes" half="3" pageurl="comment/index" order="desc" by="id"}
                        <li class="hl-comm-each">
                            <div class="hl-comm-avat"><img src="{$vo.user_id|mac_get_user_portrait}"/></div>
                            <div class="hl-comm-head">
                                <span class="hl-comm-name hl-text-site">{$vo.comment_name}</span>
                                <span class="hl-comm-time hl-text-muted">{$vo.comment_time|mac_friend_date}</span>
                            </div>
                            <div class="hl-comm-cont">
                                <div class="hl-comm-content hl-text-site">{$vo.comment_content|mac_em_replace}</div>
                                <div class="hl-comm-action hl-text-muted clearfix">
                                    <a class="digg_link" data-id="{$vo.comment_id}" data-mid="4" data-type="up" href="javascript:;"><i class="iconfont hl-icon-zanshang"></i><em class="digg_num">{$vo.comment_up}</em></a>
                                    <a data-id="{$vo.comment_id}" data-mid="4" data-type="down" href="javascript:;" class="digg_link" ><i class="iconfont hl-icon-zanxia"></i><em class="digg_num">{$vo.comment_down}</em></a>
                                    <a class="comment_reply" data-id="{$vo.comment_id}" href="javascript:;" >回复</a>
                                    <a class="comment_report" data-id="{$vo.comment_id}" href="javascript:;">举报</a>	
                                </div>
                                {maccms:foreach name="$vo.sub" id="child"}
                                <div class="hl-comm-reply hl-comm-ry-child">
                                    <div class="hl-comm-avat"><img src="{$child.user_id|mac_get_user_portrait}"/></div>
                                    <div class="hl-comm-cont">
                                        <div class="hl-comm-content hl-text-site"><span class="hl-comm-name">{$child.comment_name}</span>：{$child.comment_content|mac_em_replace}&nbsp;&nbsp;<span class="hl-comm-time hl-text-muted">{$child.comment_time|mac_friend_date}</span></div>
                                        <div class="hl-comm-action hl-text-muted clearfix">
                                            <a data-id="{$child.comment_id}" data-mid="4" data-type="up" href="javascript:;" class="digg_link" ><i class="iconfont hl-icon-zanshang"></i><em class="digg_num">{$child.comment_up}</em></a>
                                            <a class="digg_link" data-id="{$child.comment_id}" data-mid="4" data-type="down" href="javascript:;"><i class="iconfont hl-icon-zanxia"></i><em class="digg_num">{$child.comment_down}</em></a>
                                            <a data-id="{$child.comment_id}" href="javascript:;" class="comment_report_child">举报</a>
                                        </div>
                                    </div>
                                </div>
                                {/maccms:foreach}
                            </div>
                        </li>
                        {/maccms:comment}
                    </ul>
                    {include file="widget/page"}
                    {empty name="$__PAGING__.record_total"}
                    <div class="hl-empty-wrap hl-text-center hl-col-xs-12">
                        <i class="iconfont hl-icon-wupinglun"></i><p>当前暂无评论，赶紧抢个沙发</p>
                    </div>
                    {/empty}
                <script>
                    MAC.Comment.Init();
                </script>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/foot"}
</body>
</html>